<%--
  Created by IntelliJ IDEA.
  User: 86147
  Date: 2024/3/27
  Time: 21:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<html>
<head>
    <meta http-equiv="content-language" content="UTF-8">
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <title>网上书城后台管理系统页面</title>
</head>
<body>
<div id="container" style="width:100%;height:100%;">
    <div id="header">
        <%@include file="top.jsp"%>
    </div>
    <div id="menu" style="background-color:#EEEEEE;float:left;width:15%;height:70%;">
        <jsp:include page="left.jsp" />
    </div>

    <div id="content1" style="height:200px;width:85%;height:70%;float: left;background: white">
        <%
            // 从请求中获取参数item的值
            request.setCharacterEncoding("utf-8");
            String item = request.getParameter("item");

            // 判断item的值
            if (item != null && "product_list".equals(item)) {
        %>
        <%-- 包含list.jsp页面 --%>
        <jsp:include page="/WebContent/admin/products/list.jsp"/>
        <%
            }

        else if (item != null && "product_add".equals(item)) {
        %>
        <%-- 包含add.jsp页面 --%>
        <jsp:include page="/WebContent/admin/products/add.jsp"/>
        <%
        }

        else if (item != null && "download".equals(item)) {
        %>
        <%-- 包含download.jsp页面 --%>
        <jsp:include page="/WebContent/admin/products/download.jsp"/>
        <%
            }else {
        %>
        <jsp:include page="welcome.jsp" />
        <%= request.getParameter("jumpproj")%>
        <br>
        <br>
        <h2>这是使用jsp:forward从first页面跳转过来的~</h2>
        <%
            }
        %>

    </div>

    <%--<div id="content2" style="height:200px;width:85%;height:70%">
        <%
            // 从请求中获取参数item的值
            String item2 = request.getParameter("item");

            // 判断item的值
            if (item2 != null && "product_add".equals(item2)) {
        %>
        <jsp:include page="/WebContent/admin/products/add.jsp"/>
        <%
            }
        %>
    </div>--%>

   <%-- <div id="content" style="height:200px;width:85%;height:70%;float:left;background: white">
        <jsp:include page="welcome.jsp" />
        <%= request.getParameter("jumpproj")%>
        <br>
        <br>
        <h2>这是使用jsp:forward从first页面跳转过来的~</h2>
    </div>--%>
    <div id="footer" style="height:15%" width="100%">
        <%@include file="bottom.jsp"%>
    </div>
</div>
</body>
</html>
